package com.jmag.nop.service.common.doc;

/**
 * @ClassName DataType
 * @Description TODO
 * @Author JMAG
 * @Version 1.0
 **/
public enum DataType {
    BYTE("byte"),
    SHORT("short"),
    INT("integer"),
    LONG("long"),
    FLOAT("float"),
    DOUBLE("double"),
    CHAR("char"),
    BOOLEAN("boolean"),
    ARRAY("array"),
    OBJECT("object"),
    STRING("string"),
    FILE("file"),
    DATE("date"),
    DATETIME("datetime"),
    UNKNOW("");

    private String val;

    private DataType(String v) {
        this.val = v;
    }

    public String getValue() {
        return this.val;
    }

    public static DataType parse(String name) {
        return (DataType)valueOf(DataType.class, name);
    }
}
